//package com.tsinghua.server.base.service.impl;
//
//import cn.hutool.crypto.digest.DigestUtil;
//import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
//import com.baomidou.mybatisplus.core.metadata.IPage;
//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//import com.tsinghua.server.base.entity.StudentEntity;
//import com.tsinghua.server.base.entity.UserEntity;
//import com.tsinghua.server.base.mapper.TestMapper;
//import com.tsinghua.server.base.mapper.UserMapper;
//import com.tsinghua.server.base.service.CaptchaService;
//import com.tsinghua.server.base.service.TestService;
//import com.tsinghua.server.base.service.UserService;
//import com.tsinghua.server.common.Result;
//import com.tsinghua.server.common.constant.UserConstants;
//import com.tsinghua.server.common.exception.BusinessException;
//import com.tsinghua.server.common.utils.BaseUtil;
//import com.tsinghua.server.config.jwt.JWTUtils;
//import lombok.RequiredArgsConstructor;
//import org.springframework.stereotype.Service;
//
//import javax.annotation.Resource;
//import javax.servlet.http.HttpServletRequest;
//import java.util.HashMap;
//import java.util.Map;
//
//@Service
//@RequiredArgsConstructor
//public class TestServiceImpl extends ServiceImpl<TestMapper, StudentEntity> implements TestService {
//
//    @Resource
//    UserMapper userMapper;
//
//    @Override
//    public Result getList(UserEntity user, Integer pageSize, Integer PageNo) {
//        QueryWrapper<UserEntity> wrapper = new QueryWrapper<>();
//        wrapper.setEntity(user);
//        Page<UserEntity> page = new Page<>(PageNo, pageSize);
//        IPage<UserEntity> userPage = userMapper.selectPage(page,wrapper);
//        Map retMap = new HashMap();
//        retMap.put("total", userPage.getTotal());
//        retMap.put("data", userPage.getRecords());
//
//        return Result.succ(retMap);
//    }
//
//
//}
